﻿using System;
using SteeringBehaviors;

// Token: 0x020001DE RID: 478
public class FaceAction : AgentAction
{
	// Token: 0x06000A38 RID: 2616 RVA: 0x0005A402 File Offset: 0x00058602
	public FaceAction(IKinematic target)
	{
		this.name = "Face to " + target.position;
		this.target = target;
	}

	// Token: 0x06000A39 RID: 2617 RVA: 0x0005A42C File Offset: 0x0005862C
	public override void StartAction()
	{
		this.agent.movement.StartFace(this.target);
	}

	// Token: 0x06000A3A RID: 2618 RVA: 0x00059F1A File Offset: 0x0005811A
	public override bool IsCompleted()
	{
		return this.hasStarted && !this.agent.movement.move;
	}

	// Token: 0x06000A3B RID: 2619 RVA: 0x00059F3D File Offset: 0x0005813D
	public override void Interrupt()
	{
		this.agent.movement.Stop();
	}

	// Token: 0x04000F98 RID: 3992
	private IKinematic target;
}
